home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{1B0C6C74-5F0E-11D3-8CCB-0060088EC467}#9.0#0"; "TimerControl.ocx"
- Begin VB.Form IDD_Main
- BorderStyle = 1 'Fixed Single
- Caption = "Main"
- ClientHeight = 1695
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 3315
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1695
- ScaleWidth = 3315
- StartUpPosition = 2 'CenterScreen
- Begin VB.TextBox Text2
- Height = 285
- Left = 1920
- TabIndex = 2
- Text = "1000"
- Top = 1080
- Width = 975
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 240
- TabIndex = 1
- Top = 1080
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "Start"
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 120
- Width = 1455
- End
- Begin TimerControl.Timer Timer1
- Left = 2400
- Top = 120
- _ExtentX = 741
- _ExtentY = 741
- Interval = 1000
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Timer Interval"
- Height = 195
- Left = 1920
- TabIndex = 4
- Top = 840
- Width = 960
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Time at Last Poll"
- Height = 195
- Left = 240
- TabIndex = 3
- Top = 840
- Width = 1170
- End
- Attribute VB_Name = "IDD_Main"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Timer1.Interval = CLng(Text2)
- Timer1.Enabled = Not Timer1.Enabled
- If Command1.Caption = "Start" Then
- Command1.Caption = "Stop"
- Else
- Command1.Caption = "Start"
- End If
- End Sub
- Private Sub McTimer1_MVtimer()
- Text1.Text = getTime
- End Sub
- Private Sub Form_Load()
- Debug.Print "Start:" & Timer1.ProcessPriority
- Timer1.ProcessPriority = RealTime
- Debug.Print "Finish:" & Timer1.ProcessPriority
- End Sub
- Private Sub Timer1_Timer()
- Text1.Text = getTime
- End Sub
-